import request from '@/utils/request'

// 查询商机跟进记录列表
export function listRecords(query) {
    return request({
        url: '/businessFollow/records/list',
        method: 'get',
        params: query
    })
}

// 查询商机跟进记录详细
export function getRecords(recordsId) {
    return request({
        url: '/businessFollow/records/' + recordsId,
        method: 'get'
    })
}

// 新增商机跟进记录
export function addRecords(data) {
    return request({
        url: '/businessFollow/records',
        method: 'post',
        data: data
    })
}

// 修改商机跟进记录
export function updateRecords(data) {
    return request({
        url: '/businessFollow/records',
        method: 'put',
        data: data
    })
}

// 批注商机跟进记录
export function commentRecords(data) {
  return request({
    url: '/businessFollow/records/remark',
    method: 'put',
    data: data
  })
}

// 删除商机跟进记录
export function delRecords(recordsId) {
    return request({
        url: '/businessFollow/records/' + recordsId,
        method: 'delete'
    })
}
